import Vue from 'vue'
import Vuex from 'vuex';

Vue.use(Vuex)
export default new Vuex.Store({
    state:{
        cart:[],
        order:[]
    },
    mutations:{
        addCart(state,payload){
            state.cart.push(payload)
        },
        clearCart(state){
            state.cart=[]
        },
        addOrder(state,payload){
            state.order.push(payload)
        }
    }
})